#include "BloomFilter.h"
#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main()
{
    size_t N = 100000;
    string str = "https://www.csdn.net/";
    vector<string> v;
    size_t i = 0;
    // K, M, N
    BLZ::BloomFilter<69, 1000, 100000> BF;
    for(; i < N; i++)
    {
        v.push_back(str + to_string(i));
        BF.set(v[i]);
    }

    size_t fail = 0;
    for(i = 0; i < 100000; i++)
    {
        if (BF.test(str + to_string(i + 100000)))
        {
            fail++;
        }
    }
    cout << fail << endl;

    return 0;
}
